import {HttpClient} from '@angular/common/http';
import {Injectable} from '@angular/core';
import {Observable} from "rxjs/Observable";

/*
  Generated class for the LampblackCleaningProvider provider.

  See https://angular.io/guide/dependency-injection for more info on providers
  and Angular DI.
*/



@Injectable()
export class LampblackCleaningProvider {
    dataUrl='assets/data/lampblackCleaning.json';

    constructor(public http: HttpClient,
                 ) {
        console.log('Hello LampblackCleaningProvider Provider');
    }
    getData(): Observable<any> {
        return this.http.get(this.dataUrl).map((data) => {
            console.log(data);
            return data;
        });
    }


}
